let FormIdService = require("../service/formid");
let schedule = require("node-schedule");


let j = schedule.scheduleJob('0 45 22 * * *',async function(){

    await FormIdService.findCourseEnd();
    console.log("every hour 's 1 second.")
});
// let j1 = schedule.scheduleJob(new Date(2018,10,27,15,52,0),function(){
//     console.log("2018/10/27 15:52:00 running")
// });
// let rule =new schedule.RecurrenceRule();
// //rule.minute = 2;
// rule.second=1;
// let j2 = schedule.scheduleJob(rule,function(){
//     console.log("every minute 's 2 running again!")
// });
// let j3 = schedule.scheduleJob({hour:16,minute:12,dayOfWeek:2},function(){
//     console.log("every thuesday 16:12:00 running !");
// });